package cn.yitun.chat.yitunserverimbase.dao.contact;

import cn.yitun.chat.yitunservercommonlib.crud.yitun.CrudDao;
import cn.yitun.chat.yitunservercommonlib.dataentity.dto.contact.ContactHarassSettingDto;
import cn.yitun.chat.yitunservercommonlib.dataentity.po.contact.ContactHarassSettingInfo;
import cn.yitun.chat.yitunservercommonlib.dataentity.vo.contact.ContactHarassSettingVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 被加好友防止骚扰的设置
 * @author chenyitun
 * @email chenyitun@163.com
 * @date 2020-06-21 21:52:52
 */
@Mapper
public interface ContactHarassSettingDao extends CrudDao<ContactHarassSettingDto, ContactHarassSettingInfo, ContactHarassSettingVo> {

	int absDel(Long id);

	int batchAbsDel(Long[] ids);

	/**
	 * 获取用户屏蔽规则
	 * @param userId
	 * @return
	 */
    ContactHarassSettingVo getVOByUserId(@Param("userId") Long userId);

	/**
	 * 获取用户设置id
	 * @param userId
	 * @return
	 */
    Long getIdByUserId(@Param("userId") Long userId);
}
